<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>商品管理-商品分类</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<jsp:include page="../../include/baseManage.jsp"></jsp:include>
  </head>
  <body>   
  	<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
        <!-- 操作面板 -->
        <div class="operatePanel">
	       	<input class="mini-button" text="添加商品分类" iconCls="icon-addnew" plain="false" 
	       		onclick="GoodsGroupHandler.addGoodsGroup" visible="false" id="goods_group_add"/>
	       	<input class="mini-button" text="编辑商品分类" iconCls="icon-edit" plain="false" 
	       		onclick="GoodsGroupHandler.editGoodsGroup" visible="false" id="goods_group_edit"/>
	       	<input class="mini-button" text="删除商品分类" iconCls="icon-remove" plain="false" 
	       		onclick="GoodsGroupHandler.delGoodsGroup" visible="false" id="goods_group_del" />
	       	<input class="mini-button" text="展开所有" plain="false" iconCls="icon-btn-expand"
	       	    onclick="GoodsGroupHandler.expandOrCollapseAll" visible="false" id="goods_group_expandAll" />	
	       	<input class="mini-button" text="展开查询" iconCls="icon-btn-expand" plain="false" 
	       		onclick="GoodsGroupHandler.queryGoodsGroup" visible="false" id="goods_group_query" />
	       	<input class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
	       		onclick="GoodsGroupHandler.afresh" visible="false" id="goods_group_refresh"/>
	    </div>
	    <!-- 查询面板 -->
	    <div id="queryGoodsGroupDiv" class="queryPanel">
	    	<label class="queryPanelLbl">分类名称：</label>
	    	<input class="mini-textbox" id="query_bggName"/>
	    	<input class="mini-button" text="查询" iconCls="icon-btn-search" plain="false" 
	    		onclick="GoodsGroupHandler.doQueryGoodsGroup"/>
	    </div>
    </div>
    <div class="mini-fit" id="goodsGroupPanel">
	    <div id="goodsGroupTreeGrid" class="mini-treegrid" style="width:100%;height:100%;" 
	    	borderStyle="border-bottom:0;border-left:0;border-right:0;"
	    	idField="bggId" treeColumn="bggName" parentField="bggParent">
	        <div property="columns">
	            <div type="indexcolumn" width="40" headerAlign="center">序号</div>
	            <div field="bggName" name="bggName" width="100%" headerAlign="center" allowSort="true">分类名称</div>    
	            <div field="bggUnits" name="bggUnits" width="80" headerAlign="center" align="center" allowSort="true">数量单位</div>
	            <div field="bggBest" name="bggBest" width="80" headerAlign="center" align="center" allowSort="true">精品推荐</div>
	            <div field="bggNew" name="bggNew" width="80" headerAlign="center" align="center" allowSort="true">新品推荐</div>
	            <div field="bggHot" name="bggHot" width="80" headerAlign="center" align="center" allowSort="true">热销推荐</div>
	            <div field="bggBuy" name="bggBuy" width="80" headerAlign="center" align="center" allowSort="true">团购推荐</div>
	            <div field="bggSection" name="bggSection" width="80" headerAlign="center" align="center" allowSort="true">价格分级</div>
	            <div field="bggOrder" name="bggOrder" width="80" headerAlign="center" align="center" allowSort="true">分类排序</div>
	            <div field="bggState" name="bggState" width="80" headerAlign="center" align="center" allowSort="true">分类状态</div>
	            <div field="bggOperation" name="bggOperation" width="100" headerAlign="center" align="center">操作</div>
	        </div>
	    </div>
    </div>
  </body>
  <script src="handler/GoodsGroupHandler.js" type="text/javascript"></script>
</html>
